
export default (history) => {


  history.listen((res) => {

    if (!localStorage.getItem("name")) {
      history.replace("/login");
    }
  });
};
